<%@page import = "clothing.database.ItemManager" %>
<%@ include file = "templates/header.jsp" %>

<%

String name= request.getParameter("name");
String color = request.getParameter("color");
String size = request.getParameter("size");
String cost = request.getParameter("cost");
String sale_price = request.getParameter("sale_price");
String status = "In Stock";

double c = Double.parseDouble(cost);
double sp = Double.parseDouble(sale_price);

ItemManager im = new ItemManager();
im.insert(name, color, size, c, sp, status);

response.sendRedirect("displayItems.jsp");
%>
<%@ include file = "templates/footer.jsp" %>